import BaseItemModel from "../base/model/BaseItemModel";
import { Guide_infoEnum } from "./GuideManager";
export default class GuideItemModel extends BaseItemModel {
    private data: any[]
    init(id, data) {
        this.setID(id)
        this.data = data;
    }

    getPosInfo() {
        return this.data[Guide_infoEnum.posInfo]
    }

    getEndInfo() {
        return this.data[Guide_infoEnum.endInfo]
    }

    getDesc() {
        return this.data[Guide_infoEnum.des]
    }

    getFingerDir() {
        return this.data[Guide_infoEnum.fingerDir]
    }

    getDescDir() {
        return this.data[Guide_infoEnum.descDir]
    }

    isForce(){
        return false;
    }

    check(layerName:string,funcName:string,id?:any){
        let endInfo = this.getEndInfo()
        cc.log(' endInfo ',endInfo)
        cc.log(' layerName ',layerName,' funcName ',funcName)
        let endList:string[] = endInfo.split(':')
        if(endList.length == 2){
            return endList[0] == layerName && endList[1] == funcName
        }
        return false;
       
    }



}
